package com.spring.learn.aop;

import java.math.BigDecimal;

//@Service
public class ProductServiceImpl implements ProductService {


    @Override
    public void addProduct(Product product) {

        System.out.println("开始执行添加商品操作:" + product);

    }

    @Override
    public Product getProductByID(String id) {

        System.out.println("开始执行查询商品操作,productId:" + id);
        Product product = new Product();
        product.setId("1");
        product.setName("苹果手机");
        product.setPrice(BigDecimal.valueOf(28));

        return product;
    }
}
